package org.scc.model;
/**
 * 用户
 * @author rzpeng
 *
 */
public class User {
	public static final int IN = 1 ; //在团契里面
	public static final int OUT = 2 ; //离开团契
	public static final int INVALID = 3; //无效的
	
	private int id;
	private String name;
	private String username; //用户名,S1001 至S9999
	private String password;
	private String qq;
	private int status;
	private MeetingPlace meetingPlace;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getQq() {
		return qq;
	}
	public void setQq(String qq) {
		this.qq = qq;
	}
	public MeetingPlace getMeetingPlace() {
		return meetingPlace;
	}
	public void setMeetingPlace(MeetingPlace meetingPlace) {
		this.meetingPlace = meetingPlace;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getStatusText(){
		if(status == IN){
			return "在团契";
		} else if(status == OUT){
			return "离开";
		} else {
			return "无效";
		}
	}
}
